package com.ljj.controller;

import com.ljj.pojo.User;
import com.ljj.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/2 13:20
 * @Version 1.0
 */

@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @Autowired
    private UserService ordersService;

    @GetMapping("/queryUserAll")
    public List<User> queryUserAll(){
        return ordersService.queryUserAll();
    }
}
